package com.haojin.java;

public class SchoolTest {
public static void main(String[] args) {
	Student s1 = new Student();
	Teacher t1 = new Teacher();
	Customer cust1 = new Customer();
	s1.say();
	System.out.println();
	t1.say1();
	System.out.println();
	cust1.sleep(8);
}
}

class Student{
	String name = "云海";
	int age = 18;
	String major = "软件工程";
	String interest = "学习";
	
	public String say(){
		String student;
		student = "姓名："+name+"\n年龄："+age+"\n学科："+major+"\n兴趣："+interest;
		System.out.println(student);
		return student;
	}
}
class Teacher{
	String name = "老洪";
	int age = 40;
	int teachAge = 12;
	String course = "体育";
	
	public void say1(){
		System.out.println("姓名："+name+"\n年龄："+age+"\n"
				+ "教龄："+teachAge+"\n学科："+course);
	}
}